| Conditions | 1 |
| Paths | 1 |
| Total Lines | 30 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | require.config({ |
||
| 22 | initialize: function(app) { |
||
| 23 | |||
| 24 | app.components.addSource('sulucomment', '/bundles/sulucomment/js/components'); |
||
| 25 | |||
| 26 | app.sandbox.mvc.routes.push({ |
||
| 27 | route: 'comments', |
||
| 28 | callback: function() { |
||
| 29 | return '<div data-aura-component="comments/list@sulucomment"/>'; |
||
| 30 | } |
||
| 31 | }); |
||
| 32 | app.sandbox.mvc.routes.push({ |
||
| 33 | route: 'comments/edit::id/:content', |
||
| 34 | callback: function(id, content) { |
||
|
|
|||
| 35 | return '<div data-aura-component="comments/edit@sulucomment" data-aura-id="' + id + '"/>'; |
||
| 36 | } |
||
| 37 | }); |
||
| 38 | |||
| 39 | app.sandbox.mvc.routes.push({ |
||
| 40 | route: 'threads', |
||
| 41 | callback: function() { |
||
| 42 | return '<div data-aura-component="threads/list@sulucomment"/>'; |
||
| 43 | } |
||
| 44 | }); |
||
| 45 | app.sandbox.mvc.routes.push({ |
||
| 46 | route: 'threads/edit::id/:content', |
||
| 47 | callback: function(id, content) { |
||
| 48 | return '<div data-aura-component="threads/edit@sulucomment" data-aura-id="' + id + '"/>'; |
||
| 49 | } |
||
| 50 | }); |
||
| 51 | } |
||
| 52 | }; |
||
| 54 |
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.